﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Tour.BLL;
using Tour.DAL;

public partial class Controls_Tourist_TourTrongNuoc : VST.Controls.BaseLCGUserControl
{
    public int? ParentId { get; set; }   
    public bool? IsVisible { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
            LoadData();
            LoadData1();
        }
    }  
    void LoadData()
    {
        ParentId = int.Parse(GetLocaleResourceString("Module.Home.TourNoiDiaID"));       
        rpt.DataSource = TblTourTypeManager.CreateInstant().SelectTblTourTypeBy(null, ParentId, WorkingLanguage, "", IsVisible, "Id", "DESC");
        rpt.DataBind();        
    }
    void LoadData1()
    {
        ParentId = int.Parse(GetLocaleResourceString("Module.Home.TourQuocTeID "));
        rpt1.DataSource = TblTourTypeManager.CreateInstant().SelectTblTourTypeBy(null, ParentId, WorkingLanguage, "", IsVisible, "Id", "DESC");
        rpt1.DataBind();
    }
}
